﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RawImportLogs.aspx.cs" Inherits="QualityRPT.RawImportLogs" %>
<%@ Register TagPrefix="uc1" TagName="clheader" Src="include/cl_header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="cltop" Src="include/cl_top.ascx" %>
<%@ Register TagPrefix="uc1" TagName="clleft" Src="include/cl_left.ascx" %>
<%@ Register TagPrefix="uc1" TagName="clfooter" Src="include/cl_footer.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>ETC产品质量跟踪统计系统-源数据导入列表</title>
    <uc1:clheader id="clheader" runat="server"/>
</head>
<!-- this is content start-->
<body>
 <uc1:cltop id="cltop" runat="server"/>
 <div class="container-fluid">
    <div class="row-fluid">
    <uc1:clleft id="clleft" runat="server"/>
    <div class="box span10">
    <div class="box-header well">
	    <h2><i class="icon-th"></i>源数据导入状态</h2>
    </div>
    <table class="table table-striped table-bordered bootstrap-datatable datatable">
        <thead>
            <tr>
                <th>文件名</th>
                <th>导入表</th>
                <th>耗时</th>
                <th>状态</th>
                <th>完成时间</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
        <asp:Repeater ID="repeater_data" runat="server">
        <ItemTemplate>
            <tr>
                <td><%#GetSplitDes(DataBinder.Eval(Container.DataItem, "LOG_DESCRIPTION"),0)%></td>
                <td><%#GetSplitDes(DataBinder.Eval(Container.DataItem, "LOG_DESCRIPTION"),1)%></td>
                <td><%#GetSplitDes(DataBinder.Eval(Container.DataItem, "LOG_DESCRIPTION"),2)%></td>
                <td><%# DataBinder.Eval(Container.DataItem, "LOG_TYPE").ToString()=="0"?"<span class='success'>成功</span>":"<span class='error'>失败</span>"%></td>
                <td><%# DataBinder.Eval(Container.DataItem, "LOG_TIME","{0:yyyy-MM-dd HH:mm}")%></td>
                <td>
                   <a onclick="return confirm('确定要删除该导入提示么？');" href="rawimportlogs.aspx?act=del&rid=<%# DataBinder.Eval(Container.DataItem, "id")%>&pid=<%=Request.Params["pid"] %>&cid=<%=Request.Params["cid"] %>">删除</a> 
                </td>
            </tr>
        </ItemTemplate>
        </asp:Repeater>
        </tbody>
    </table>
</div>
</div>		
<!-- content end-->
</div>
<uc1:clfooter id="clfooter" runat="server"/>
</body>
</html>
